$.fn.validate = function(tips){

    if($(this).val() == "" || $.trim($(this).val()).length == 0){
        alert(tips + "不能为空！");
        throw SyntaxError(); //如果验证不通过，则不执行后面
    }
}
function submit() {
				//调用validate()
				$("#name").validate("收货人姓名");
				$("#mobile").validate("联系电话");
				$("#address").validate("详细地址");
			}
// 点击修改地址，刷新table
function update (){
$.ajax(function(){  
    method:"post",  
    url:"DeleteAction",  
    data:xxxxx,  
    success: function(return) {  
        $("#tabelData").html(return);  
    }  
}); 
}
//删除地址
$('.delete').on('click',function () {
    if(confirm("确定要删除吗？")){
        alert("确定");
        var str1=$(this).attr("name"); // jQuery attr() 方法用于获取属性值
        var str2="/organization/OrganizationManager_delete.do?param="+str1;
        window.location.href = str2;
    }else{
        alert("取消");
    }


})
